package com.example.taximeter.bean;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 价格类型
 */
public class Price {

    @NotNull(message = "价格类型格式错误", groups =  GroupUpdate.class)
    private Integer id;//价格类型id--主键

    @Length(min = 1, max = 20, message = "价格类型格式错误", groups = {GroupCreate.class, GroupUpdate.class})
    private String pricetype;//价格类型

    @Length(min = 0, max = 100, message = "备注格式错误", groups = {GroupCreate.class, GroupUpdate.class})
    private String memo;//备注

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPricetype() {
        return pricetype;
    }

    public void setPricetype(String pricetype) {
        this.pricetype = pricetype;
    }
}
